﻿using IBll;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using Model;

namespace WebApl.Controllers
{
    [Route("api/[controller]/[action]")]
    [ApiController]

    public class HelteTypeController : ControllerBase, IHelteTypebLL
    {
        /// <summary>
        /// 实现方法
        /// </summary>
        /// <param name="bll"></param>
        public HelteTypeController(IHelteTypebLL bll)
        {
            Bll = bll;
        }

        public IHelteTypebLL Bll { get; }

        /// <summary>
        /// 绑定分类下拉框
        /// </summary>
        /// <returns>返回受影响行数</returns>
        /// 
        [HttpGet]
        public List<HelteType> helteTypes()
        {
            try//异常处理
            {
                 return Bll.helteTypes();
            }
            catch (Exception)
            {

                throw;
            }

      
        }
    }
}
